/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Services;

import Services.exception.*;
import database.daos.DAOException;
import beans.StoreEmployeeBean;
import database.daos.StoreEmployeeDAO;


/**
 *
 * @author Anthar
 */
public class StoreEmployeeServices {


    private StoreEmployeeDAO storeEmployeeDAO;

    public StoreEmployeeServices(){
        storeEmployeeDAO = new StoreEmployeeDAO();
    }

    public StoreEmployeeBean searchEmployee(int storeEmployeeId) throws ServiceException{
        try {
            return getStoreEmployeeDAO().searchStoreEmployee(storeEmployeeId);
        } catch (DAOException ex) {
             throw new UnableToConnectException(ex.getMessage());
        }
    }

    /**
     * @return the storeEmployee
     */
    public StoreEmployeeDAO getStoreEmployeeDAO() {
        return storeEmployeeDAO;
    }
   

}
